<template>
  <div id="question">
    <div class="content">
      <div class="return">
        <span>问题反馈</span>
        <div class="input">
          <input type="text" placeholder="您的建议对我们非常重要" v-model="suggest">
        </div>
      </div>
    </div>
    <div class="bottom" @click="isSubmit">
      <div class="hand">
        <img src="../../assets/tijiao.png" alt="">
        <span>提交</span>
      </div>
    </div>
    <div class="message" v-if="isSuccess">
      您的建议我们已收到，非常感谢！
    </div>
    <div class="message" v-if="isFaild">
      清输入您的建议
    </div>
  </div>
</template>

<script>

export default {
  name: 'Question',
  data () {
    return {
      suggest: '',
      isSuccess: false,
      isFaild: false
    }
  },
  created () {
    document.title = '问题反馈'
  },
  methods: {
    isSubmit () {
      if (this.suggest !== '') {
        this.isSuccess = true
      } else {
        this.isFaild = true
      }
    }
  }
}
</script>

<style lang='scss' scoped>
#question{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  .content{
    flex: 1;
    padding: 5.33vw 3.46vw;
    background-color: #fff;
    .return{
      span{
        font-size: 3.73vw;
        font-family: SourceHanSansCN-Regular;
        font-weight: 400;
        color: rgba(168,168,168,1);
      }
      .input{
        height: 12.53vw;
        margin-top: 6.66vw;
        padding: 0 3.46vw;
        border-bottom: 1px solid #d8d8d8;
        input{
          width: 100%;
          height: 93%;
          border: none;
          outline: none;
          font-family: SourceHanSansCN-Regular;
          font-weight: 400;
          color: rgba(192,192,192,1);
          font-size: 4.53vw;
        }
      }
    }
  }
  .bottom{
    width: 100%;
    height: 14.66vw;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    .hand{
      color: #0A6DFF;
      img{
        width: 4.53vw;
        height: 4.53vw;
        margin-right: 2vw;
      }
      span{
        font-size: 4.53vw;
        font-family: SourceHanSansCN-Normal;
        font-weight: 400;
      }
    }
  }
  .message{
    width: 84vw;
    height: 10.4vw;
    background-color: #000;
    color: white;
    text-align: center;
    line-height: 10.4vw;
    font-size: 4.26vw;
    font-family: SourceHanSansCN-Regular;
    font-weight: 400;
    position: absolute;
    top: 76vw;
    left: 8vw;
    border-radius: 1vw;
  }
}
</style>
